package com.naiterui.ehp.bs.ds.modules.statistics.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.ds.common.constants.DsName;
import com.naiterui.ehp.bs.ds.modules.statistics.vo.OrderStatisticsVO;
import com.naiterui.ehp.bs.ds.modules.statistics.vo.SaleStatisticsParamVO;

/**
 * @author guoyongxiang
 * @date 2019/10/11 13:51
 * @since 1.0.0
 */
@DS(DsName.EHP)
public interface OrderStatisticsMapper extends BaseMapper {

    Page<OrderStatisticsVO> getPage(@Param("page") IPage<OrderStatisticsVO> page, @Param("ew") Wrapper<SaleStatisticsParamVO> entityWrapper);

    List<OrderStatisticsVO> export(@Param("ew") Wrapper<?> entityWrapper);
}
